package com.mepo.cheer.client.pages;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.mepo.cheer.shared.Squad;

public class SquadPage extends Composite {

	public SquadPage(Squad s) {

		VerticalPanel content = new VerticalPanel();
		content.setSize("100%", "100%");
		content.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		Label header = new Label(s.getHeader());
		header.addStyleName("squad-header");
		Image image = new Image(s.getImageLocation());
		image.addStyleName("squad-img");
		Label imgDesc = new Label(s.getImageDesc());
		imgDesc.addStyleName("squad-desc");

		content.add(header);
		content.add(image);
		content.add(imgDesc);
		
		
		
		initWidget(content);
	}
}
